package com.qinghe.pro.mapper.main;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.qinghe.pro.entity.main.User;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    User selectById(Integer id);

    User selectByUsername(String username);

    User selectByTel(String tel);

    User selectByIdNotAndTel(@Param("id") Integer id, @Param("tel") String tel);

    List<User> selectAll(User record);

	/**
	 * 统计角色的人员数量
	 * 
	 */
    List<Map<String, Object>> countByRole();

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
}